package com.d0316;

public class SecoundException {
    public static void main(String[] args) {
        try {
            int a=100;
            int b=0;
            System.out.println(a/b);
            String c =null;

        }/*catch (ArithmeticException ex){
            System.out.println("程序发生了异常，除数不能为0");
        }*/catch (NullPointerException ex){
            System.out.println("空指针异常");
        }catch (Exception ex){
            System.out.println("有异常");
        }finally {
            System.out.println("finally执行");
        }
        System.out.println("运行结束");
    }
}
